new Vue({
	el: "#app",
	data: {
		imgUrl: "https://app.meijiangzi.com/static/mini_",
		ImgBaseUrl: "https://app.meijiangzi.com/static/",
		isDisabled: !0,
		bankArray: [],
		list: [],
		isCheck: !1,
		lastNum: "",
		index: 0,
		num: 60,
		btnText: "发送验证码",
		card: "去绑定银行卡",
		input_code: "",
		input_psw: "",
		point: 0,
		card_id: -1,
		timer: ""
	},
	methods: {
		toAddbank: function() {
			if(0 != this.bankArray.length && "" != this.bankArray){
				
			}else if(window.confirm("请绑定银行卡")){
				Jump.to(page.mine.addCards);
			};
		},
		getBankInfo: function(){
		  var t = this;
		  wx.showLoading({
			title: "加载中",
			mask: !0
		  }), this.$http.post(baseUrl + "/user/api/queryUserInfo", {
		  }).then(function (i) {
			wx.hideLoading();
			var e = i.data;
			if (!e.success) return wx.hideLoading(), wx.showToast({
			  title: e.description,
			  icon: "none",
			  duration: 2e3,
			  mask: !0
			}), !1;
			t.card = e.data.bankName ? (e.data.realname + ' - '+ e.data.bankName + '[' + e.data.bankCard + ']') : t.card;
		  }).catch(function (t) {
			wx.hideLoading(), wx.showToast({
			  title: "网络错误，请检查网络",
			  icon: "none",
			  duration: 2e3,
			  mask: !0
			});
		  });
		},
		getCode: function() {
		},
		comfireBtn: function(t) {
			this.isCheck ? (this.isCheck = !this.isCheck, this.isDisabled = !0) : (this.isCheck = !0, 
			this.isDisabled = !1);
		},
		bindPickerChange: function(t) {
		  if(this.card == '去绑定银行卡'){
			Jump.to(page.mine.addCards);
		  }
		},
		toAgreements: function(){
			Jump.to(page.mine.agreements);
		}, 
		submithandle: function() {
			return '去绑定银行卡' === this.card ? (wx.showToast({
				title: "请先绑定银行卡",
				icon: "none",
				duration: 2e3,
				mask: !0
			}), !1) : (wx.showLoading({
				title: "加载中",
				mask: !0
			  }), void this.$http.post(baseUrl + "/mjz/withdrew/add", {
				points: this.point
			}).then(function(t) {
				wx.hideLoading();
				var i = t.data;
				if (wx.hideLoading(), i.success) wx.showToast({
					title: "提现申请已提交",
					icon: "none",
					duration: 2e3,
					mask: !0
				}), Jump.back(); else {
				  wx.showToast({
					title: i.description,
					icon: "none",
					duration: 2e3,
					mask: !0
				  }), !1;
				}
			}).catch(function(t) {
				wx.hideLoading(), wx.showToast({
					title: "网络错误，请检查网络",
					icon: "none",
					duration: 2e3,
					mask: !0
				});
			}));
		}
	},
	created: function(){
		this.point = URLParam.get("coin_num");
		this.getBankInfo();
	}
});